﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductionManagement.Domain.ProductionDomain
{
    /// <summary>
    /// 生产计划产品关联表
    /// </summary>
    /// 
    [SugarTable("ProductionProduct")]
    public class ProductionProduct: Audit
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ProductionProductId { get; set; } // 生产计划产品id
        public string? PPDocumentNumber { get; set; } // 单据编号
        public int? ProductId { get; set; } // 产品id
        /// <summary>
        /// 产品编号
        /// </summary>
        public string? PNumber { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string? PName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string? PSpec { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string? PUnit { get; set; }
        public int? PPNum { get; set; } // 数量
        /// <summary>
        /// 物料清单主题
        /// </summary>
        public string? MSubject { get; set; }
        public DateTime? PPAppStartDate { get; set; } // 计划开工日期
        public DateTime? PPAppEndDate { get; set; } // 计划完工日期
        public DateTime? PPReleDate { get; set; } // 交货日期
        public string? PProuctSmark { get; set; } //备注 
    }
}
